package com.cgbl.cg.adapter

import android.os.Bundle
import androidx.appcompat.widget.AppCompatImageView
import com.cgbl.cg.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.configs.AppConstants
import com.robot.base.model.ModuleBean
import com.robot.base.util.arouter.ARouterUtil
import com.robot.base.utils.pic.ImageLoaderUtils

class ModuleAdapter : BaseQuickAdapter<ModuleBean, BaseViewHolder>(R.layout.app_item_system) {
    override fun convert(holder: BaseViewHolder, item: ModuleBean) {
        val ivImg = holder.getView<AppCompatImageView>(R.id.item_iv_img)
        ImageLoaderUtils.displayRound(context, ivImg, item.filePath, 10)
    }
}